package com.smart.consumer.feign.fallback;

import com.smart.consumer.common.reqeust.UserRequestParams;
import com.smart.consumer.common.response.ResponseVo;
import com.smart.consumer.common.vo.UserVo;
import com.smart.consumer.feign.UserFeignApi;

public class UserFeignFallBack implements UserFeignApi {
    @Override
    public ResponseVo<String> provider() {
        return ResponseVo.success(null);
    }

    @Override
    public ResponseVo<UserVo> list(int page, int size) {
        return ResponseVo.success(new UserVo());
    }

    @Override
    public ResponseVo<UserVo> register(UserRequestParams requestParams) {
        //  先从缓存中区数据
        return ResponseVo.success(null);
    }

    @Override
    public ResponseVo<UserVo> detail(Integer uid) {
        return ResponseVo.success(null);
    }

    @Override
    public ResponseVo<Integer> test() {
        return ResponseVo.success(0);
    }
}
